<template>
	<div>
		<el-form ref="form" :model="form"  label-width="80px">
			<el-row>
				<el-col :span="9">
					<el-form-item  label-width="125px" label="档案编号" v-model="form.recordId" >:{{this.form.recordId}}</el-form-item>
				</el-col>
				<el-col :span="14">
					<el-form-item label-width="225px" label="姓名" v-model="form.recordId" >:{{this.form.customerName}}</el-form-item>
				</el-col>
			</el-row>

			<el-row>
				<el-col :span="9">
					<el-form-item  label-width="125px" label="客户id"  v-model="form.customerId">:{{this.form.customerId}}</el-form-item>
				</el-col>

				<el-col :span="14">
					<el-form-item label-width="225px" label="性别"  v-model="form.customerGender" >:{{this.form.customerGender}}</el-form-item>
				</el-col>
			</el-row>

			<el-row>
				<el-col :span="8">
					<el-form-item label="床位使用起始日期" label-width="125px"  v-model="form.bedSdate">
:{{this.form.bedSdate}}
					</el-form-item>
				</el-col>
				<el-col :span="15">
					<el-form-item label-width="256px" label="床位使用结束日期" prop="operatorTime"  v-model="form.bedEdate">
						:{{this.form.bedEdate}}
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="8">
					<el-form-item  label-width="125px" label="床位状态"  v-model="form.bedStatus">:{{this.form.bedStatus}}</el-form-item>
				</el-col>
				<el-col :span="15">
					<el-form-item label-width="256px" label="床位详细信息"  v-model="form.bedInfo">:{{this.form.bedInfo}}</el-form-item>
				</el-col>
			</el-row>
			
		</el-form>
	</div>
</template>

<script>
import axios from '@/utils/axiosutils.js';

export default {
	name: 'BedAdd',
	props: ['bedvalue'],
	components: {},
	data() {
		return {
			form: {
				recordId: '',
				customerName: '',
				customerId: '',
				customerGender: '',
				bedStatus: '',
				bedSdate: '',
				bedEdate: '',
				bedInfo: ''
			}
			
		};
	},
	created() {
		console.log(this.bedvalue)
		this.form.recordId=this.bedvalue.recordId;
		this.form.customerName=this.bedvalue.customerName;
		this.form.customerId=this.bedvalue.customerId;
		this.form.customerGender=this.bedvalue.customerGender;
		this.form.bedStatus=this.bedvalue.bedStatus;
		this.form.bedSdate=this.bedvalue.bedSdate;
		this.form.bedEdate=this.bedvalue.bedEdate;
		this.form.bedInfo=this.bedvalue.bedInfo;
	}
};
</script>

<style scoped>
	.el-row{
		height:60px;
	}
</style>
